package guoanmaker.operator.business.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import guoanmaker.operator.business.model.OperatorActiveTask;

public interface OperatorActiveTaskRepository extends JpaRepository<OperatorActiveTask, String>, JpaSpecificationExecutor<OperatorActiveTask> {

	@Modifying
	@Query(value="delete from t_operator_active_task where id=:taskId", nativeQuery=true)
	void deleteById(@Param("taskId")String taskId);
	
}
